#ifndef NEWSTOCKDIALOG_H
#define NEWSTOCKDIALOG_H

#include <QDialog>
#include "stock/stock.h"

namespace Ui {
    class NewStockDialog;
}

class NewStockDialog : public QDialog
{
    Q_OBJECT

public:
    explicit NewStockDialog(QWidget *parent = 0);
    explicit NewStockDialog(Stock* s,QWidget* parent=0);
    ~NewStockDialog();

public slots:
    void accept();

private:
    Ui::NewStockDialog *ui;
    Stock* s;                   //don't delete, gets the stock from main window
};

#endif // NEWSTOCKDIALOG_H
